package com.sihan.swvp.service.jc;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.sihan.swvp.dao.jc.JcBzjsbzzyDao;
import com.sihan.swvp.entity.jc.JcBzjsbzzy;
@Service
public class JcBzjsbzzyService{

	@Autowired
	private JcBzjsbzzyDao bzjsbzzyDao;
	
	public Page<Map<String, Object>> getJcBzjsbzzy(Map<String, Object> params,Integer page,Integer limit) {
		PageHelper.startPage(page, limit);
		return bzjsbzzyDao.getJcBzjsbzzy(params);
	}

	public void addJcBzjsbzzy(int jcBzjsId,Long upuser,String[] jcBzzyZygcIds){
		bzjsbzzyDao.addJcBzjsbzzy(jcBzjsId, upuser, jcBzzyZygcIds);
	}

	public void updateJcBzjsbzzy(JcBzjsbzzy bean) {
		bzjsbzzyDao.updateJcBzjsbzzy(bean);
	}

	public int deleteJcBzjsbzzy(Integer jcBzjsId) {
		return bzjsbzzyDao.deleteJcBzjsbzzy(jcBzjsId);
	}

	public List<Map<String, Object>> getBzzyZygcByIdList(Map<String, Object> params) {
		return bzjsbzzyDao.getBzzyZygcByIdList(params);
	}

	public List<Map<String, Object>> getJcBzjsbzzyByIdList(Map<String, Object> params) {
		return bzjsbzzyDao.getJcBzjsbzzyByIdList(params);
	}
}
